
	
	<link rel="stylesheet" href="{{URL::asset('newmobile/css/swiper-3.4.2.min.css')}}" />
	<!-- js引入 -->
	<script src="{{URL::asset('public_js/jquery-3.2.1.min.js')}}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts.js') }}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-3d.js')}}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-zh_CN.js')}}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/modules/exporting.js') }}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/highcharts-more.js') }}"></script>
	<script src="{{ URL::asset('public_js/src/Highcharts-5.0.10/code/modules/solid-gauge.js') }}"></script>
	<script src="{{URL::asset('newmobile/js/swiper-3.4.2.jquery.min.js') }}"></script>
	<script src="{{URL::asset('newmobile/js/public.js') }}"></script>
	<script src="{{URL::asset('newmobile/js/mastercenter.js') }}"></script>
	@include('newmobile.title')
	<!--名字信息-->
	<section class="info">
		<div class="photo">
			<img src="@if($info[0] -> photo) {{ $info[0] -> photo}} @else{{URL::asset('mobile/image/photo.png') }} @endif" alt="" />
			<div class="v">
				@if($info[0] -> isanalyst == 1)
					<img src="{{URL::asset('mobile/image/v.png')}}" alt="" />
				@endif
			</div>
		</div>
		<!-- 名字 认证信息 -->
		<div class="nameinfo">
			<div class="name">
				{{ $info[0] -> username}}
			</div>
			<div class="renzheng">
				@if($info[0] -> isanalyst == 1)
					<img src="{{URL::asset('newmobile/images/new_analyst/r_master.png')}}" alt="" />
				@else
					<img src="{{URL::asset('newmobile/images/new_analyst/t_star.png')}}" alt="" />
				@endif
			</div>
		</div>
	</section>
	<!--战绩-->  
	<section class="record">
		<div class="xing">
			<div class="grade">
				@if($info[0] -> grade == 0)
                	<img src="{{ URL::asset('newmobile/images/new_master/baijin.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 1)
	                <img src="{{ URL::asset('newmobile/images/new_master/gold.png') }}" alt="">
	            @elseif($info[0] -> grade == 2)
	                <img src="{{ URL::asset('newmobile/images/new_master/baiyin.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 3)
	                <img src="{{ URL::asset('newmobile/images/new_master/tong.png') }}" alt=""> 
	            @elseif($info[0] -> grade == 4)
	                <img src="{{ URL::asset('newmobile/images/new_master/tie.png') }}" alt=""> 
	            @endif
			</div>
			<div class="star">
			<!-- 默认显示一个星星两个灰星星 -->
					<div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/huixingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/huixingxing.png') }}" alt=""> </div>
				@if($info[0] -> star == 1)
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/huixingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/huixingxing.png') }}" alt=""> </div>
	            @elseif($info[0] -> star == 2)
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/huixingxing.png') }}" alt=""> </div>
	            @elseif($info[0] -> star == 3)
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div>
	                <div><img src="{{ URL::asset('newmobile/images/new_master/xingxing.png') }}" alt=""></div> 
	            @endif
			</div>
		</div>
		<div class="lian">
			<div class="kui">
				<p><span>{{$info[0] -> lianbai}}/</span>3</p>
				<p>连亏</p>
			</div>
			<div class="sheng">
				<p><span>{{$info[0] -> liansheng}}/</span>5</p>
				<p>连胜</p>
			</div>
		</div>
		<div class="deng">
			<p><span>等级:&nbsp;</span>
				@if($info[0] -> grade == '4') V
                @elseif($info[0] -> grade == '3') IV
                @elseif($info[0] -> grade == '2') III
                @elseif($info[0] -> grade == '1') II
                @else I                                 
                @endif
			</p>
			<p><span>职称:&nbsp;</span>
				@if($info[0] -> grade == '4') 金融宗师
                @elseif($info[0] -> grade == '3') 操盘大师
                @elseif($info[0] -> grade == '2') 分析专家
                @elseif($info[0] -> grade == '1') 交易高手
                @else 交易能手                                  
                @endif
			</p>
		</div>
	</section>
	@if($memorderinfo)
		<section class="hd">
			<div class="swiper-container">
		        <div class="swiper-wrapper">
		            <div class="swiper-slide smallDIV">
		            	<div class="total">
							<p>
								<span>总盈</span>
								<span class="baiColor">{{ $delproit -> allPoint ? $delproit->allPoint : 0 }}点</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>做多盈利</span>
								<span class="hongColor">{{ round($delproit -> allBuyProfitPoint,2)}}点</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>做空交易</span>
								<span class="hongColor">{{round($delproit -> allSellProfitPoint,2)}}点</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>单均盈利</span>
								<span class="hongColor">{{ round($delproit -> avaProfit,2)}}点</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>最大连亏</span>
								<span class="lvColor">{{round($maxdata['liankui'],2)}}笔</span>
							</p>
						</div>
		        	</div>
		        	<div class="swiper-slide smallDIV">
		            	<div class="total">
								<p>
									<span>策略数量</span>
									<span class="baiColor">{{$delproit->profitTradeNum + $delproit->lossTradeNum}}笔</span>
								</p>
							</div>
							<div class="total">
								<p>
									<span>盈利策略</span>
									<span class="hongColor">{{$delproit -> profitTradeNum}}笔</span>
								</p>
							</div>
							<div class="total">
								<p>
									<span>最大盈利</span>
									<span class="lvColor">{{ round($memorderinfo[0] -> max_final_point,2)}}点</span>
								</p>
							</div>
							<div class="total">
								<p>
									<span>平均持仓时间</span>
									<span class="baiColor">{{round($delproit -> avgChiCangTime,2)}}时</span>
								</p>
							</div>
							<div class="total">
								<p>
									<span>最大亏损</span>
									<span class="baiColor">{{ round($memorderinfo[0] -> min_final_point,2)}}点</span>
								</p>
							</div>
		        	</div>
		        	<div class="swiper-slide smallDIV">
		            	<div class="total">
		            		<p>
								<span>胜率</span>
								<span class="hongColor">{{round($delproit -> shenglv,2)}}%</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>稳定指数</span>
								<span class="baiColor">{{round($wendata['wending'],2)}}</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>最大回撤</span>
								<span class="lvColor">{{round($maxdata['huiche'],2)}}</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>最大涨幅</span>
								<span class="hongColor">{{round($maxdata['zhangfu'],2)}}</span>
							</p>
						</div>
						<div class="total">
							<p>
								<span>风险比</span>
								<span class="baiColor">{{$wendata['fengXianBi']}}</span>
							</p>
						</div>
		        	</div>
		    	</div>
		</section>
	@endif
	<!--交易报表  曲线图-->
	<section class="jiaoyireport">
		<div class="jiaoyichart">
				<div class="m_jiaoyichart" id="m_jiaoyichart" style="width: 15rem;height: 6.823rem;margin: 2rem auto 0;"></div>
		</div>
	</section>
	<!-- 订阅按钮 -->
	@if($followstatus != 2)
		@if($followstatus == 1)
			<section class="dingyue" style="background: #3e5565;">
				编辑订阅
			</section>
		@else
			<section class="dingyue">
				订阅
			</section>
		@endif
	@endif
	<div style="height: 5rem;"></div>
	@include('mobile.msg')
	@include('newmobile.tanchuang')
</body>
</body>
</html>
<script>
	var userId = "{{$id}}";
	$(function(){

		//总交易报表
		var xmydata11 = [];
	    var xmypoint='{{ $pointDayJiaoyi }}';
	    var xmytime='{{ $timeDayJiaoyi }}';
	    xmytime = xmytime.split(',');
	    xmypoint = xmypoint.split(',');
	    xmypoint.forEach(function(data,index,arr){
	        xmydata11.push(+data);
	    });
	    jiaoyiChart(m_jiaoyichart,[xmytime,xmydata11]);
		// 订阅按钮弹窗
		$('.dingyue').click(function(){
			if('{{$followstatus}}' == 1){
				$('#gendancancle').show();
			}else{
				$('#gendancancle').hide();
			}
			$('#follow_btn').show();
		})
	})
</script>
    	
